MongoMapper.connection = Mongo::Connection.new('dbh62.mongolab.com', 27627)
#MongoMapper.connection = Mongo::Connection.new('localhost', 27017)
#MongoMapper.database = "#gfnservices-#{Rails.env}"
MongoMapper.database = "heroku_app1595140"
MongoMapper.database.authenticate('heroku_app1595140', 'g4dlm59jfgclno9n1tah0noddp')

if defined?(PhusionPassenger)
   PhusionPassenger.on_event(:starting_worker_process) do |forked|
     MongoMapper.connection.connect if forked
   end
end
